s = 'hello world!'

for i in range(0,len(s)):
    print(i,s[i],end = '\t\t')
print('\n')

for i in range(-len(s),0):
    print(i,s[i],end = '\t\t')
print('\n')